﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;
using WeiboFilter.KeywordsRelated;
using System.Text;

namespace WeiboFilter
{
    public class Global : System.Web.HttpApplication
    {

        protected void Application_Start(object sender, EventArgs e)
        {
            //加入用户词典
            ICTCLAS clas = ICTCLAS.GetInstance();
            int count = clas.ImportUserDictFile(Server.MapPath("用户词典_u8.txt"), Encoding.UTF8);

            //加入停用词表
            int num=StopWord.importWordListFile(Server.MapPath("停止词.txt"));

            int n2 = CiXing.importConfigureXML(Server.MapPath("ConfigFile.xml"));

            int n3 = SystemConstant.importConfigureXML(Server.MapPath("ConfigFile.xml"));
        }

        protected void Session_Start(object sender, EventArgs e)
        {

        }

        protected void Application_BeginRequest(object sender, EventArgs e)
        {

        }

        protected void Application_AuthenticateRequest(object sender, EventArgs e)
        {

        }

        protected void Application_Error(object sender, EventArgs e)
        {

        }

        protected void Session_End(object sender, EventArgs e)
        {

        }

        protected void Application_End(object sender, EventArgs e)
        {
        }
    }
}